﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MG.HomeO2O.BLL;
using MG.HomeO2O.Model;
namespace MG.HomeO2O.Admin.Hander
{
    /// <summary>
    /// LoginHandler1 的摘要说明
    /// </summary>
    public class LoginHandler1 : IHttpHandler
    {
        UsersBLL bll = new UsersBLL();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            //接受参数
                string name = context.Request["p"];
            string pwd = context.Request["w"];
            //调用方法
            var i= bll.Login(name, pwd);
            //返回到html的数据
            context.Response.Write(i);

        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}